﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Depo
{
    public partial class Owners : XForm
    {
        public Owners()
        {
            InitializeComponent();
        }

        private void Owners_Load(object sender, EventArgs e)
        {
            
            gridView1.Init("GetOwners");
            gridView1.AddDetailGrid(gridView2, "CustomerId");

            gridView2.MakeColumnInvisible("CustomerId");

            gridView1.FormatAsNumber(1, "OwnerKarbel", "OwnerMusteri", "OwnerDiger", "Toplam");
            gridView2.FormatAsNumber(1, "Qty");

            gridView1.AddSummary("OwnerKarbel", "OwnerMusteri", "OwnerDiger", "Toplam");
            gridView2.AddSummary("Qty");

            gridView1.BestFitColumns();
            gridView2.BestFitColumns();

            splitContainerControl1.AutoSize();

        }
    }
}
